using UnityEngine;
using System.Collections;

public class CreateRoleInfo : MonoBehaviour {
	
	private static CreateRoleInfo instance;
	
	public static CreateRoleInfo GetInstance(){
		if(!instance){
			instance = (CreateRoleInfo)GameObject.FindObjectOfType(typeof(CreateRoleInfo));
		}
		
		return instance;
	}
	
	string playerName;
	int profession;
	int sex;
	string headPicName;
	
	public string PlayerName{
		get{
			return playerName;
		}
		set{
			playerName = value;
		}
	}
	
	public int Profession{
		get{
			return profession;
		}
		set{
			profession = value;
		}
	}
	
	public int Sex{
		get{
			return sex;
		}
		set{
			sex = value;
		}
	}
	
	public string HeadPicName{
		get{
			return headPicName;
		}
		set{
			headPicName = value;
		}
	}
}
